// LocationManager.h
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^LocationSuccessHandler)(CLLocationCoordinate2D coordinate);
typedef void (^LocationFailureHandler)(NSError *error);

@interface LocationManager : NSObject <CLLocationManagerDelegate>

+ (instancetype)sharedManager;

// 获取当前经纬度
- (void)getCurrentLocationWithSuccess:(LocationSuccessHandler)success
                             failure:(LocationFailureHandler)failure;

// 检查定位权限状态
+ (CLAuthorizationStatus)locationAuthorizationStatus;

@end

NS_ASSUME_NONNULL_END
